package com.zzy;

import com.zzy.utils.Csh;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

@SpringBootApplication
public class C1Application {

    public static void main(String[] args) {

        ConfigurableApplicationContext run = SpringApplication.run(C1Application.class, args);
        //启动时链接zookeeper添加临时节点
        Csh csh =(Csh)run.getBean("csh");
        csh.zk();
    }

}
